import { get } from '../axios/axiosFunction.ts'

interface GetArticleResponse {
    userId: number,
    id: number,
    title: string,
    body: string
}

export function getArticle(id:number) {
    return get<GetArticleResponse>(`/posts/${id}`)
}

